<div class="row-fluid">
    <div class="span12">

        <div class="widget-box">
            <div class="widget-title">
								<span class="icon">
									<i class="icon-signal"></i>
								</span>
                <h5>Line chart</h5>
            </div>
            <div class="widget-content">
                <div class="chart"></div>
                <!--图表数据-->
            <script type="text/javascript">
                // === Prepare the chart data ===/
                 var datasets = [{
                     label: "好评",color: "#BA1E20",
                     data: [<?php foreach($month_data_good as $k=>$v){echo "[".($k*1000).",".$v."],";}?>]
                 }, {
                     label: "中评",color: "#459D1C",
                     data: [<?php foreach($month_data_neutral as $k=>$v){echo "[".($k*1000).",".$v."],";}?>]
                 }, {
                     label: "差评",color: "#445599",
                     data: [<?php foreach($month_data_bad as $k=>$v){echo "[".($k*1000).",".$v."],";}?>]
                 }];
            </script>
		            
            </div>
        </div>

        <div class="widget-box">
            <div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
                <h5>Static table</h5>
            </div>
            <div class="widget-content nopadding">
                <table class="table table-bordered table-striped">
                    <thead>
                    <tr>
                        <th>商品名称</th>
                        <th>商品价格</th>
                        <th>评价</th>
                        <th>买家</th>
						<th>时间</th>
                    </tr>
                    </thead>
                    <tbody>
					<?php foreach($comments as $k=>$v){?>
                    <tr>
                        <td><?php echo $v->item_name;?></td>
                        <td><?php echo '￥'.$v->item_price;?></td>
                        <td><?php
						        switch ($v->result){
								    case 'good':echo '好评';break;
									case 'neutral':echo '中评';break;
									case 'bad':echo '差评';break;
								}
							?>
						</td>
                        <td><?php echo $v->name;?></td>
						<td><?php echo date('Y-m-d H:m:s',$v->create_time);?></td>
                    </tr>
                    <?php }
					
					?>
                    </tbody>
                </table>
            </div>
			
        </div><?php echo $page.'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$msg;?>


    </div>
</div>
